Unlinking files mimicking "rm -f"

Brad Morrison morrison at ficc.uu.net
Sat Mar 3 01:28:19 AEST 1990


In article <2885 at umbc3.UMBC.EDU> cs223130 at umbc5.umbc.edu.UUCP (CMSC 223/01011) writes:
>
>A regular call to unlink() prompts the user . . .

[ . . . ]

>This process runs on System V version
>2.2. (Yeah I know it's old but I have no say on upgrades) The machine
>is an AT&T 3b15.

[ . . . ]

>P.S. To clarify, The problem will only arise when the file owned by
>janedoe does not give write permissions to joeblow or joesgrp.
>I can't remember the exact wording of the question but I think is goes
>something like this.

>"rm filename mode?"

Something is wrong with your unlink(), and it's not an upgrade issue,
or a question of permissions.  You shouldn't get a prompt when a system
library call fails, just a non-zero return status and (in this case)
EACCES in errno.

Before you call your vendor and complain, though--make sure that you're
not linking in a modified unlink(), or using a #define'd one.  Do you
have source?  Perhaps some well-meaning (??  !!!  #$*&^@) soul changed it.
Gak.
-- 
Brad Morrison                (713) 274-5449 |   "OK.  Come back tomorrow.
Ferranti International Controls Corporation |    Bring two apples and
uunet!ficc!morrison    morrison at ficc.uu.net |    a hammer."



More information about the Comp.unix.questions mailing list