On Friday 16 January 2009 10:01, Timo Teräs wrote: > Hi, > > I had on some systems very mysterious changes of /dev/null mode to > "crw-r--r--" that will cause all kind of bad things to happen. > > After some tedious debugging, I was able to isolate it to one > script that did: > tar -c -v -I includelist -X excludelist somefiles > /dev/null > > to get a hold of file names that would be included in the archive. > But this single command managed to mess the /dev/null mode. > > It appears that tar.c uses fchmod to change the file permissions > when creating the archive. But that's the completely wrong thing > to do for directions when outputting to stdout. And in any case > you should be relying on umask and not some fixed mode.
GNU tar does not do this, so yes, you are 100% right. Applied, thanks! -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
