diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:31 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:31 -0800 |
commit | ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7 (patch) | |
tree | eee15e02ae016333546d3841712be591b2bcb06f /posix.c | |
parent | 302e3218b7d487539ec305bf23881a6ee7d5be99 (diff) | |
download | scm-ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7.tar.gz scm-ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7.zip |
Import Upstream version 5e2upstream/5e2
Diffstat (limited to 'posix.c')
-rw-r--r-- | posix.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -178,8 +178,8 @@ SCM l_pwinfo(user) struct passwd *entry; SCM *ve = VELTS(ans); DEFER_INTS; - if UNBNDP(user) SYSCALL(entry = getpwent();); - else if INUMP(user) SYSCALL(entry = getpwuid(INUM(user));); + if (UNBNDP(user)) SYSCALL(entry = getpwent();); + else if (INUMP(user)) SYSCALL(entry = getpwuid(INUM(user));); else { ASRTER(NIMP(user) && STRINGP(user), user, ARG1, s_pwinfo); SYSCALL(entry = getpwnam(CHARS(user));); @@ -204,8 +204,8 @@ SCM l_grinfo(name) struct group *entry; SCM *ve = VELTS(ans); DEFER_INTS; - if UNBNDP(name) SYSCALL(entry = getgrent();); - else if INUMP(name) SYSCALL(entry = getgrgid(INUM(name));); + if (UNBNDP(name)) SYSCALL(entry = getgrent();); + else if (INUMP(name)) SYSCALL(entry = getgrgid(INUM(name));); else { ASRTER(NIMP(name) && STRINGP(name), name, ARG1, s_grinfo); SYSCALL(entry = getgrnam(CHARS(name));); |