Re: martin f krafft 2007-10-04 <[EMAIL PROTECTED]> > $ … | patch -o- some/file > patch: **** can't output patches to standard output > > (a) that warning should go to stderr
Only if -o is stdout.
> (b) there can't be a real reason for this. It should be trivial to
> add.
Just tried it here, s.out is the -o file:
16718 open("s.out", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
16718 fcntl(3, F_GETFL) = 0x8001 (flags O_WRONLY|O_LARGEFILE)
16718 fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
16718 lseek(3, 0, SEEK_CUR) = 0
16718 write(3, "# Network services, Internet sty"..., 4096) = 4096
16718 write(3, "9/tcp\t\t\t\t# Quick Mail Transfer P"..., 4096) = 4096
16718 write(3, "otus Note\nlotusnote\t1352/udp\tlot"..., 4096) = 4096
16718 write(3, "rmtsys\t7009/tcp\t\t\t# remote cache"..., 4096) = 4096
16718 write(3, "ent statd\nenbd-sstatd\t5052/tcp\t\t"..., 1917) = 1917
16718 close(3) = 0
That was a fairly trivial patch, no idea if there's more lseek()s or other
syscalls that don't work on stdout for more complex ones.
Christoph
--
[EMAIL PROTECTED] | http://www.df7cb.de/
signature.asc
Description: Digital signature

