app-mobilephone/gammu: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/7699
This commit is contained in:
Michael Mair-Keimberger
2018-03-29 20:36:37 +02:00
committed by Aaron Bauman
parent 2a4043db75
commit b94a418a37

View File

@@ -1,22 +0,0 @@
diff -BurpN gammu-1.36.8.orig/smsd/uid.c gammu-1.38.4/smsd/uid.c
--- gammu-1.38.4.orig/smsd/uid.c 2017-06-18 14:33:32.000000000 +0300
+++ gammu-1.38.4/smsd/uid.c 2017-10-10 01:48:20.696098522 +0300
@@ -54,7 +54,7 @@
if (pwd == NULL) {
/* Try to handle it as a number */
uid = strtol(name, &endptr, 10);
- if (*endptr == 0 && uid > 0) {
+ if (*endptr == 0 && uid >= 0) {
pwd = getpwuid(uid);
}
}
@@ -85,7 +85,7 @@
/* Try to handle it as a number */
if (grp == NULL) {
gid = strtol(name, &endptr, 10);
- if (*endptr == 0 && gid > 0) {
+ if (*endptr == 0 && gid >= 0) {
grp = getgrgid(gid);
}
}