Removed trailing \n from error_msg{,_and_die} messages.
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c
index 178138a..81db101 100644
--- a/chmod_chown_chgrp.c
+++ b/chmod_chown_chgrp.c
@@ -65,7 +65,7 @@
case CHMOD_APP:
/* Parse the specified modes */
if (parse_mode(theMode, &(statbuf->st_mode)) == FALSE) {
- error_msg_and_die( "unknown mode: %s\n", theMode);
+ error_msg_and_die( "unknown mode: %s", theMode);
}
if (chmod(fileName, statbuf->st_mode) == 0)
return (TRUE);
@@ -150,7 +150,7 @@
if (*argv == p)
uid = my_getpwnam(*argv);
if (uid == -1) {
- error_msg_and_die( "unknown user name: %s\n", *argv);
+ error_msg_and_die( "unknown user name: %s", *argv);
}
}
}
@@ -167,7 +167,7 @@
return EXIT_SUCCESS;
bad_group:
- error_msg_and_die( "unknown group name: %s\n", groupName);
+ error_msg_and_die( "unknown group name: %s", groupName);
}
/*