Change fopen() to open() to yield an fd
authorPaul Park <pjpark@mit.edu>
Thu, 17 Aug 1995 14:43:41 +0000 (14:43 +0000)
committerPaul Park <pjpark@mit.edu>
Thu, 17 Aug 1995 14:43:41 +0000 (14:43 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6541 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/kpropd.c

index 73d5dd4b58612f7377ae2bc75321aaec3f0fdca4..7258d7c89475b14264cf47f41bd3f78f74141b10 100644 (file)
@@ -279,7 +279,7 @@ void doit(fd)
                exit(1);
        }
        omask = umask(077);
-       lock_fd = fopen(temp_file_name, O_RDONLY);
+       lock_fd = open(temp_file_name, O_RDONLY, 0600);
        (void) umask(omask);
        retval = krb5_lock_file(kpropd_context, lock_fd, 
                                KRB5_LOCKMODE_EXCLUSIVE|KRB5_LOCKMODE_DONTBLOCK);