spec.c (2860) | spec.c (6286) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 167 unchanged lines hidden (view full) --- 176 if (value && (val = strtok(NULL, " \t\n")) == NULL) 177 err("missing value"); 178 switch(type) { 179 case F_CKSUM: 180 ip->cksum = strtoul(val, &ep, 10); 181 if (*ep) 182 err("invalid checksum %s", val); 183 break; | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 167 unchanged lines hidden (view full) --- 176 if (value && (val = strtok(NULL, " \t\n")) == NULL) 177 err("missing value"); 178 switch(type) { 179 case F_CKSUM: 180 ip->cksum = strtoul(val, &ep, 10); 181 if (*ep) 182 err("invalid checksum %s", val); 183 break; |
184 case F_MD5: 185 ip->md5digest = strdup(val); 186 if(!ip->md5digest) { 187 err("%s", strerror(errno)); 188 } 189 break; |
|
184 case F_GID: 185 ip->st_gid = strtoul(val, &ep, 10); 186 if (*ep) 187 err("invalid gid %s", val); 188 break; 189 case F_GNAME: 190 if ((gr = getgrnam(val)) == NULL) 191 err("unknown group %s", val); --- 89 unchanged lines hidden --- | 190 case F_GID: 191 ip->st_gid = strtoul(val, &ep, 10); 192 if (*ep) 193 err("invalid gid %s", val); 194 break; 195 case F_GNAME: 196 if ((gr = getgrnam(val)) == NULL) 197 err("unknown group %s", val); --- 89 unchanged lines hidden --- |