]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- correctly check options
authorArvin Schnell <aschnell@suse.de>
Thu, 2 May 2013 14:22:54 +0000 (16:22 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 2 May 2013 14:22:54 +0000 (16:22 +0200)
pam/pam_snapper.c

index 113d7d683c79890d24741cb0c3033c1f7abde75c..64478ac8754b4927e6bfad157be755f4d9ca618f 100644 (file)
@@ -596,16 +596,16 @@ static int cdbus_pam_options_parser( pam_handle_t * pamh, pam_options_t * option
                                        pam_syslog( pamh, LOG_ERR, "ignoreusers - specification missing argument - ignored" );
                                }
                        }
-               } else if ( !strncmp( *argv, "debug", 5 ) ) {
+               } else if ( !strcmp( *argv, "debug" ) ) {
                        options->debug = true;
-               } else if ( !strncmp( *argv, "rootasroot", 10 ) ) {
+               } else if ( !strcmp( *argv, "rootasroot" ) ) {
                        options->rootasroot = true;
-               } else if ( !strncmp( *argv, "ignoreroot", 10 ) ) {
+               } else if ( !strcmp( *argv, "ignoreroot" ) ) {
                        options->ignoreroot = true;
-               } else if ( !strncmp( *argv, "openonly", 8 ) ) {
+               } else if ( !strcmp( *argv, "openonly" ) ) {
                        options->do_close = false;
                        options->do_open = true;
-               } else if ( !strncmp( *argv, "closeonly", 9 ) ) {
+               } else if ( !strcmp( *argv, "closeonly" ) ) {
                        options->do_open = false;
                        options->do_close = true;
                } else {