Module Name: src Committed By: mlelstv Date: Sun Oct 14 20:10:49 UTC 2018
Modified Files: src/sbin/gpt: gpt.c Log Message: When changing entries skip those that do not match the -L option. Should fix PR 53668. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/sbin/gpt/gpt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/gpt/gpt.c diff -u src/sbin/gpt/gpt.c:1.75 src/sbin/gpt/gpt.c:1.76 --- src/sbin/gpt/gpt.c:1.75 Tue Jul 3 03:41:23 2018 +++ src/sbin/gpt/gpt.c Sun Oct 14 20:10:49 2018 @@ -35,7 +35,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: gpt.c,v 1.75 2018/07/03 03:41:23 jnemeth Exp $"); +__RCSID("$NetBSD: gpt.c,v 1.76 2018/10/14 20:10:49 mlelstv Exp $"); #endif #include <sys/param.h> @@ -1043,7 +1043,7 @@ gpt_change_ent(gpt_t gpt, const struct g utf16_to_utf8(ent->ent_name, __arraycount(ent->ent_name), utfbuf, __arraycount(utfbuf)); - if (strcmp((char *)find->label, (char *)utfbuf) == 0) + if (strcmp((char *)find->label, (char *)utfbuf) != 0) continue; }