summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2012-05-27 16:45:31 +0200
committerTormod Volden <debian.tormod@gmail.com>2012-05-27 17:00:13 +0200
commit63d0f6999e92f788eed2c16d042e499aea721f5e (patch)
tree3ba69f661ac7a78df8cfd79bb9f351e20efb5c9c
parent520634f92be84f846f6795ed788c0d4671090bd3 (diff)
Do not suggest the use of setuid in error message
Nobody likes setuid binaries, users can use sudo instead. Also add "Error" to the error messages. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--s3switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/s3switch.c b/s3switch.c
index bde41bf..6a02574 100644
--- a/s3switch.c
+++ b/s3switch.c
@@ -487,7 +487,7 @@ main( int argc, char ** argv )
}
else
{
- fprintf( stderr, "Unknown argument: %s\n", *argv );
+ fprintf( stderr, "Error: Unknown argument: %s\n", *argv );
usage();
exit( -1 );
}
@@ -495,7 +495,7 @@ main( int argc, char ** argv )
if( geteuid() != 0 )
{
- fprintf( stderr, "s3switch must be setuid root.\n" );
+ fprintf( stderr, "Error: s3switch must be run as root.\n" );
exit( -1 );
}