OSDN Git Service

essat's flag not to follow symlinks isn't in the system call, and if libc is supposed...
authorRob Landley <rob@landley.net>
Mon, 10 Dec 2012 07:48:02 +0000 (01:48 -0600)
committerRob Landley <rob@landley.net>
Mon, 10 Dec 2012 07:48:02 +0000 (01:48 -0600)
commitb9bde7b403a8dcf8e8a1417383bb70816a7c1958
tree8c8c55d4b26bdb8b322ce1b481f535ddbeb1143e
parentd52e76d50879542702b89cc8cc873358232d2e3f
essat's flag not to follow symlinks isn't in the system call, and if libc is supposed to implement this as a wrapper uClibc gets it wrong. So use the stat info about symlinks instead. (Doesn't check the parent directory, but if that's read only we can't delete the file anyway so prompting is moot.)
toys/posix/rm.c