Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!killer!vector!rpp386!pigs!haugj
From: haugj@pigs.UUCP (Joe Bob Willie)
Newsgroups: comp.bugs.misc
Subject: Re: Bug in Ultrix 2.0:setting the sticky bit
Summary: Not in Plexus land ...
Keywords: tricky sticky
Message-ID: <241@pigs.UUCP>
Date: 6 Jul 88 22:21:39 GMT
References: <552@philmds.UUCP>
Reply-To: haugj@pigs.UUCP (Joe Bob Willie)
Organization: Big "D" Oil and Gas
Lines: 37

In article <552@philmds.UUCP> leo@philmds.UUCP (Leo de Wit) writes:
>The open system call allows setting the sticky bit to non-root users,
>for example [ using Ultrix ]
>
>   close(open(filename,O_WRONLY|O_CREAT|O_TRUNC,512));
>
>creates a file with sticky bit set. But, according to sticky(8):
>
>     Only the super-user can set the sticky bit.

just finished trying it here and the results are:

Script started on Wed Jul  6 17:18:14 1988
1 - pigs-> cat bug.c
#include 
main ()
{
	close (open ("bug.test", O_WRONLY|O_CREAT|O_TRUNC, 01000));
	perror ("bug.test");
}
2 - pigs-> cc -o bug bug.c
C-68000 1.8.0 Copyright (c)1985,1986 Green Hills Software, Inc.
3 - pigs-> bug
bug.test: Error 0
4 - pigs-> ls -l bug.test
----------   1 haugj    sys            0 Jul  6 17:18 bug.test
5 - pigs-> 
script done on Wed Jul  6 17:19:02 1988

nope, no bug here.  must be an ultrix value added feature ;-)

- john.
-- 
 John "Evil USENET User" F. Haugh II          HECI Exploration Co, Inc., Dallas
 UUCP: ...!killer!rpp386!jfh                            jfh@rpp386.UUCP :DOMAIN
 **** Trivia question of the day: VYARZERZIMANIMORORSEZASSEZANSERAREORSES? ****
 "You are in a twisty little maze of UUCP connections, all alike" -- fortune