changeset 131 | b5ad49852adc |
parent 77 | 49e0babccb23 |
child 138 | dff18d1ac2af |
--- a/file_demo.c +++ b/file_demo.c @@ -22,8 +22,10 @@ return -1; mode = strtoul (argv[1], NULL, 8); - system ("/bin/rm -f /home/mbroeker/Desktop/test1.txt"); - system ("/bin/rm -f /home/mbroeker/Desktop/test2.txt"); + if (system ("/bin/rm -f /home/mbroeker/Desktop/test1.txt") != 0) + return EXIT_FAILURE; + if (system ("/bin/rm -f /home/mbroeker/Desktop/test2.txt") != 0) + return EXIT_FAILURE; /* * Opens ReadOnly