summaryrefslogtreecommitdiff
path: root/source3/lib/pidfile.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 12:48:00 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commitd166b798529dab4538054d0b68797c0cc17f34de (patch)
tree8bbdeba0c71b1819abe153e7bf3a2c024adc42cf /source3/lib/pidfile.c
parent9cc056e567fe923bb3a19fce3828cdbea9a3d2f7 (diff)
downloadsamba-d166b798529dab4538054d0b68797c0cc17f34de.tar.gz
samba-d166b798529dab4538054d0b68797c0cc17f34de.tar.bz2
samba-d166b798529dab4538054d0b68797c0cc17f34de.zip
build: Remove sys_open wrapper
Diffstat (limited to 'source3/lib/pidfile.c')
-rw-r--r--source3/lib/pidfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c
index 469ddbd95f..f1c89ebaf3 100644
--- a/source3/lib/pidfile.c
+++ b/source3/lib/pidfile.c
@@ -66,7 +66,7 @@ pid_t pidfile_pid(const char *program_name)
SAFE_FREE(name);
- fd = sys_open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
+ fd = open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
if (fd == -1) {
SAFE_FREE(pidFile);
return 0;
@@ -147,7 +147,7 @@ void pidfile_create(const char *program_name)
exit(1);
}
- fd = sys_open(pidFile_name, O_NONBLOCK | O_CREAT | O_WRONLY | O_EXCL,
+ fd = open(pidFile_name, O_NONBLOCK | O_CREAT | O_WRONLY | O_EXCL,
0644);
if (fd == -1) {
DEBUG(0,("ERROR: can't open %s: Error was %s\n", pidFile_name,