cosmetic change to mkswap selinux patch

This commit is contained in:
kzak 2006-03-09 10:47:44 +00:00
parent 7eb3b23957
commit bd3a2b8451

View File

@ -35,7 +35,7 @@
+ +
+ if ((fgetfilecon(DEV, &oldcontext) < 0) && + if ((fgetfilecon(DEV, &oldcontext) < 0) &&
+ (errno != ENODATA)) { + (errno != ENODATA)) {
+ fprintf(stderr, "%s: %s: unable to obtain selinux file label: %s\n", + fprintf(stderr, _("%s: %s: unable to obtain selinux file label: %s\n"),
+ program_name, device_name, + program_name, device_name,
+ strerror(errno)); + strerror(errno));
+ exit(1); + exit(1);
@ -49,7 +49,7 @@
+ +
+ if (strcmp(context_string, oldcontext)!=0) { + if (strcmp(context_string, oldcontext)!=0) {
+ if (fsetfilecon(DEV, context_string)) { + if (fsetfilecon(DEV, context_string)) {
+ fprintf(stderr, "%s: unable to relabel %s to %s: %s\n", + fprintf(stderr, _("%s: unable to relabel %s to %s: %s\n"),
+ program_name, device_name, + program_name, device_name,
+ context_string, + context_string,
+ strerror(errno)); + strerror(errno));