summaryrefslogtreecommitdiff
path: root/src/posix/posix-umask.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-11-25 00:01:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-11-25 00:01:25 +0000
commitd4ed432960c1bf54de426bdb53825c1c1b32112e (patch)
tree56d60d455db64cb63694edcd4525298a506175d7 /src/posix/posix-umask.c
parent02fa8ea0993971a90b0f8d11b882af1e6a86c273 (diff)
downloadexecline-d4ed432960c1bf54de426bdb53825c1c1b32112e.tar.xz
Port to skalibs-2.9.4.0
Diffstat (limited to 'src/posix/posix-umask.c')
-rw-r--r--src/posix/posix-umask.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/posix/posix-umask.c b/src/posix/posix-umask.c
index b4b9b4b..16d7f4f 100644
--- a/src/posix/posix-umask.c
+++ b/src/posix/posix-umask.c
@@ -10,7 +10,7 @@
#include <skalibs/sgetopt.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
-#include <skalibs/djbunix.h>
+#include <skalibs/exec.h>
#define USAGE "posix-umask [ -S ] [ mask ] [ prog... ]"
#define dieusage() strerr_dieusage(100, USAGE)
@@ -146,7 +146,7 @@ static inline unsigned int parsemode (char const *s)
return ((unsigned int)modes[2] << 6) | ((unsigned int)modes[1] << 3) | modes[0] ;
}
-int main (int argc, char const **argv, char const *const *envp)
+int main (int argc, char const **argv)
{
int sym = 0 ;
unsigned int mode ;
@@ -170,5 +170,5 @@ int main (int argc, char const **argv, char const *const *envp)
if (!argc) return output(sym) ;
if (!uint0_oscan(argv[0], &mode)) mode = ~parsemode(argv[0]) ;
umask(mode & 00777) ;
- xpathexec0_run(argv+1, envp) ;
+ xexec0(argv+1) ;
}