From 9bf19ae69f414fe94749f8d760f20051266066cd Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 7 May 2020 14:20:41 +0200 Subject: [PATCH] correction fork --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 3b5aadb..2b14afe 100644 --- a/main.c +++ b/main.c @@ -246,14 +246,14 @@ int main() perror(logfile); return 7; } - fprintf(fh1, "%s: Connexion de %s\n#%s# %s\n", date, user, cmd, cmdline); + fprintf(fh1, "%s: Connexion de %s commnade: %s %s", date, user, cmd, cmdline); fclose(fh1); }else if (id<0) { printf("erreur de création du fork: %s", str); }else { - //printf("%s\n", str); + printf("%s\n", str); r = system( str ); exit (r); }