summaryrefslogtreecommitdiff
path: root/lib/util
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 /lib/util
parent9cc056e567fe923bb3a19fce3828cdbea9a3d2f7 (diff)
downloadsamba-d166b798529dab4538054d0b68797c0cc17f34de.tar.gz
samba-d166b798529dab4538054d0b68797c0cc17f34de.tar.bz2
samba-d166b798529dab4538054d0b68797c0cc17f34de.zip
build: Remove sys_open wrapper
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/become_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/become_daemon.c b/lib/util/become_daemon.c
index 92a75862bd..373927ca6e 100644
--- a/lib/util/become_daemon.c
+++ b/lib/util/become_daemon.c
@@ -85,7 +85,7 @@ _PUBLIC_ void become_daemon(bool do_fork, bool no_process_group, bool log_stdout
if (!no_process_group) setsid();
#elif defined(TIOCNOTTY)
if (!no_process_group) {
- int i = sys_open("/dev/tty", O_RDWR, 0);
+ int i = open("/dev/tty", O_RDWR, 0);
if (i != -1) {
ioctl(i, (int) TIOCNOTTY, (char *)0);
close(i);