Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/systrace daemon should not change the directory. from p...



details:   https://anonhg.NetBSD.org/src/rev/5d68fbe60d1f
branches:  trunk
changeset: 536497:5d68fbe60d1f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Sep 17 04:54:36 2002 +0000

description:
daemon should not change the directory.  from provos

diffstat:

 bin/systrace/intercept.c |  6 +++---
 bin/systrace/systrace.c  |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 8fdd970cd56e -r 5d68fbe60d1f bin/systrace/intercept.c
--- a/bin/systrace/intercept.c  Tue Sep 17 03:55:40 2002 +0000
+++ b/bin/systrace/intercept.c  Tue Sep 17 04:54:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intercept.c,v 1.5 2002/08/28 03:52:45 itojun Exp $     */
+/*     $NetBSD: intercept.c,v 1.6 2002/09/17 04:54:36 itojun Exp $     */
 /*     $OpenBSD: intercept.c,v 1.29 2002/08/28 03:30:27 itojun Exp $   */
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -30,7 +30,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: intercept.c,v 1.5 2002/08/28 03:52:45 itojun Exp $");
+__RCSID("$NetBSD: intercept.c,v 1.6 2002/09/17 04:54:36 itojun Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -316,7 +316,7 @@
        }
 
        if (bg) {
-               if (daemon(0, 1) == -1) {
+               if (daemon(1, 1) == -1) {
                        kill(pid, SIGKILL);
                        err(1, "daemon");
                }
diff -r 8fdd970cd56e -r 5d68fbe60d1f bin/systrace/systrace.c
--- a/bin/systrace/systrace.c   Tue Sep 17 03:55:40 2002 +0000
+++ b/bin/systrace/systrace.c   Tue Sep 17 04:54:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systrace.c,v 1.6 2002/09/16 04:31:47 itojun Exp $      */
+/*     $NetBSD: systrace.c,v 1.7 2002/09/17 04:54:36 itojun Exp $      */
 /*     $OpenBSD: systrace.c,v 1.32 2002/08/05 23:27:53 provos Exp $    */
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -513,7 +513,7 @@
                        err(1, "attachpid");
 
                if (background) {
-                       if (daemon(0, 1) == -1)
+                       if (daemon(1, 1) == -1)
                                err(1, "daemon");
                }
        }



Home | Main Index | Thread Index | Old Index