diff --exclude-from=exclude -N -u -r nsapolicycoreutils/newrole/newrole.c policycoreutils-1.30.22/newrole/newrole.c --- nsapolicycoreutils/newrole/newrole.c 2006-07-03 07:52:43.000000000 -0400 +++ policycoreutils-1.30.22/newrole/newrole.c 2006-08-01 09:53:54.000000000 -0400 @@ -47,6 +47,7 @@ * *************************************************************************/ +#define _GNU_SOURCE #include #include /* for malloc(), realloc(), free() */ #include /* for getpwuid() */ @@ -855,7 +856,10 @@ if (optind < 1) optind = 1; - argv[optind - 1] = pw->pw_shell; + if (asprintf(&argv[optind - 1], "-%s", pw->pw_shell) < 0) { + fprintf(stderr, _("Error allocating shell.\n")); + } + #ifdef CANTSPELLGDB { int i; @@ -897,7 +901,7 @@ } #endif freecon(old_context); - execv(argv[optind - 1], argv + optind - 1); + execv(pw->pw_shell, argv + optind - 1); /* If we reach here, then we failed to exec the new shell. */ perror(_("failed to exec shell\n")); diff --exclude-from=exclude -N -u -r nsapolicycoreutils/po/fr.po policycoreutils-1.30.22/po/fr.po --- nsapolicycoreutils/po/fr.po 2006-08-01 09:47:27.000000000 -0400 +++ policycoreutils-1.30.22/po/fr.po 2006-08-01 09:56:24.000000000 -0400 @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: Policy Core Utils 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-07-07 23:15+0200\n" +"POT-Creation-Date: 2006-05-26 13:48-0400\n" "PO-Revision-Date: 2006-07-08 13:34+0200\n" "Last-Translator: Guillaume CHARDIN \n" "Language-Team: French\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: " +"Plural-Forms: \n" #: ../load_policy/load_policy.c:22 #, c-format @@ -189,12 +189,16 @@ #: ../newrole/newrole.c:717 #, c-format msgid "%s! Could not get current context for %s, not relabeling tty.\n" -msgstr "%s! Ne peut récupérer le contexte actuel pour %s, le tty ne sera pas renomé.\n" +msgstr "" +"%s! Ne peut récupérer le contexte actuel pour %s, le tty ne sera pas " +"renomé.\n" #: ../newrole/newrole.c:728 #, c-format msgid "%s! Could not get new context for %s, not relabeling tty.\n" -msgstr "%s! Ne peut récupérer le nouveau contexte pour %s, le tty ne sera pas renomé.\n" +msgstr "" +"%s! Ne peut récupérer le nouveau contexte pour %s, le tty ne sera pas " +"renomé.\n" #: ../newrole/newrole.c:740 #, c-format @@ -250,7 +254,8 @@ "USAGE: run_init