Subject: Re: umask weirdness
To: None <smd@ebone.net, sommerfeld@orchard.arlington.ma.us>
From: Sean Doran <smd@ebone.net>
List: current-users
Date: 06/19/1999 20:01:19
| Have you tried running ktrace on this?  
|
| Are you sure that umask isn't getting set in your .cshrc?

I don't use csh(1), generally.

Here's the result of kdump after 'ktrace sh -c umask'.

	Sean.

   521 ktrace   CALL  execve(0xefbfc90c,0xefbfcd8c,0xefbfcd9c)
   521 ktrace   NAMI  "/bin/sh"
   521 sh       EMUL  "netbsd"
   521 sh       RET   execve JUSTRETURN
   521 sh       CALL  getpid
   521 sh       RET   getpid 521/0x209
   521 sh       CALL  geteuid
   521 sh       RET   geteuid 1113/0x459
   521 sh       CALL  __sysctl(0xefbfccb4,0x2,0x5aa08,0xefbfccb0,0,0)
   521 sh       RET   __sysctl 0
   521 sh       CALL  break(0x5b6d4)
   521 sh       RET   break 0
   521 sh       CALL  break(0x5bffc)
   521 sh       RET   break 0
   521 sh       CALL  break(0x5cffc)
   521 sh       RET   break 0
   521 sh       CALL  __stat13(0x5aa30,0xefbfcc70)
   521 sh       NAMI  "/var/mail/smd"
   521 sh       RET   __stat13 0
   521 sh       CALL  getuid
   521 sh       RET   getuid 1113/0x459
   521 sh       CALL  geteuid
   521 sh       RET   geteuid 1113/0x459
   521 sh       CALL  getgid
   521 sh       RET   getgid 1113/0x459
   521 sh       CALL  getegid
   521 sh       RET   getegid 1113/0x459
   521 sh       CALL  __sigaction14(0x2,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x2,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x2,0xefbfcccc,0)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x2,0xefbfccc4,0xefbfccac)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x3,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x3,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x3,0xefbfcccc,0)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x3,0xefbfccc4,0xefbfccac)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x1,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x1,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x1,0xefbfcccc,0)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x1,0xefbfccc4,0xefbfccac)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0x12,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0xd,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0xd,0,0xefbfcccc)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0xd,0xefbfcccc,0)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  __sigaction14(0xd,0xefbfccc4,0xefbfccac)
   521 sh       RET   __sigaction14 0
   521 sh       CALL  break(0x5dffc)
   521 sh       RET   break 0
   521 sh       CALL  umask(0)
   521 sh       RET   umask 18/0x12
   521 sh       CALL  umask(0x12)
   521 sh       RET   umask 0
   521 sh       CALL  break(0x5effc)
   521 sh       RET   break 0
   521 sh       CALL  write(0x1,0x5e000,0x5)
   521 sh       GIO   fd 1 wrote 5 bytes
       "0022
       "
   521 sh       RET   write 5
   521 sh       CALL  exit(0)