# HG changeset patch # User Mikael Hallendal # Date 1227086200 -3600 # Node ID 0cb53b009e8c1029e2e75f6f435d6b684e38fb89 # Parent ac126834c1603bc14174583ece394125ad407ca2 Silence chdir by catching return value diff -r ac126834c160 -r 0cb53b009e8c loudmouth/asyncns.c --- a/loudmouth/asyncns.c Wed Nov 19 10:12:27 2008 +0100 +++ b/loudmouth/asyncns.c Wed Nov 19 10:16:40 2008 +0100 @@ -382,6 +382,7 @@ int have_death_sig = 0; assert(in_fd > 2); assert(out_fd > 2); + int no_warn; close(0); close(1); @@ -391,7 +392,7 @@ open("/dev/null", O_WRONLY); open("/dev/null", O_WRONLY); - chdir("/"); + no_warn = chdir("/"); if (geteuid() == 0) { struct passwd *pw;