in reply to Re^2: Unlink not deleting, Threading issue?
in thread Unlink not deleting, Threading issue?

Greetings, dave_the_m.

The OP (pimperator) mentions Super User twice in the post.

...the user has super-user privileges...
and
After doing some reading I see that unlink() will not work if the file is open or if the user doesn't have superuser privileges, which is not the case for both.
Which is why I felt it pertinent to mention the -U flag.

--Chris

¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

  • Comment on Re^3: Unlink not deleting, Threading issue?

Replies are listed 'Best First'.
Re^4: Unlink not deleting, Threading issue?
by dave_the_m (Monsignor) on Jun 05, 2014 at 14:41 UTC
    But the -U flag is only for unlinking directories, not files, and even then it only works on a few ancient UNIX variants. Systems like Linux don't allow you unlink() directories with or without -U.

    And unless there's some documentation I missed, -U does not affect whether Windows can unlink opened files.

    Dave.

    A reply falls below the community's threshold of quality. You may see it by logging in.