Applied, thanks! [email protected], le sam. 04 oct. 2025 20:40:29 +0100, a ecrit: > From: Diego Nieto Cid <[email protected]> > > ../../mach-defpager/main.c: In function 'main': > ../../mach-defpager/main.c:116:11: warning: ignoring return value of > 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] > --- > mach-defpager/main.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/mach-defpager/main.c b/mach-defpager/main.c > index 11afea2f..fd7f300f 100644 > --- a/mach-defpager/main.c > +++ b/mach-defpager/main.c > @@ -113,7 +113,9 @@ main (int argc, char **argv) > error (1, errno, "cannot become daemon"); > case 0: > setsid (); > - chdir ("/"); > + err = chdir ("/"); > + if (err == -1) > + error (3, 0, "chdir call failed"); > close (0); > close (1); > close (2); > -- > 2.51.0 > >
-- Samuel <P> je sens venir la fonte 14 pour le rapport -+- #ens-mim -+-
