SYS V unlink() call

Barry Shein bzs at bucsd.UUCP
Sun Feb 16 12:26:16 AEST 1986


Re: need to be root or setuid to unlink files in SYS/V

Tis true, if you are struggling over a program that wants to unlink
a directory try:

#define RMDIR "/bin/rmdir"
	...time passes...
	sprintf(buf,"%s %s",RMDIR,directoryname);
	system(buf);

with appropriate error checks and customizing. And stop feeling
sorry for the wires :-)

	-Barry Shein, Boston University



More information about the Comp.unix.wizards mailing list