You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-mobilephone/gammu/files/gammu-1.38.4-smsd.patch

23 lines
717 B

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);
}
}