delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/07/07/12:14:59

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: umask() return value
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Tue, 7 Jul 92 9:10:47 PDT
Mailer: Elm [revision: 66.25]

I notice that umask() is hard-coded to return octal 644.  However,
umask() is supposed to be a mask of mode bits to TURN OFF when
creating a file.  It looks to me like the value is the inverse of what
it should be.  Therefore, I believe that the return value should be
changed to something like octal 022.
--
				Eric Backus
				ericb%hplsla AT hplabs DOT hp DOT com
				(206) 335-2495

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019