spec.c (42561) | spec.c (44303) |
---|---|
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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93"; 37#endif 38static const char rcsid[] = | 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93"; 37#endif 38static const char rcsid[] = |
39 "$Id: spec.c,v 1.8 1998/12/16 04:54:08 imp Exp $"; | 39 "$Id: spec.c,v 1.9 1999/01/12 02:58:23 jkoshy Exp $"; |
40#endif /* not lint */ 41 42#include <sys/types.h> 43#include <sys/stat.h> 44#include <ctype.h> 45#include <err.h> 46#include <errno.h> 47#include <fts.h> --- 146 unchanged lines hidden (view full) --- 194 lineno, val); 195 break; 196 case F_MD5: 197 ip->md5digest = strdup(val); 198 if(!ip->md5digest) { 199 errx(1, "strdup"); 200 } 201 break; | 40#endif /* not lint */ 41 42#include <sys/types.h> 43#include <sys/stat.h> 44#include <ctype.h> 45#include <err.h> 46#include <errno.h> 47#include <fts.h> --- 146 unchanged lines hidden (view full) --- 194 lineno, val); 195 break; 196 case F_MD5: 197 ip->md5digest = strdup(val); 198 if(!ip->md5digest) { 199 errx(1, "strdup"); 200 } 201 break; |
202 case F_SHA1: 203 ip->sha1digest = strdup(val); 204 if(!ip->sha1digest) { 205 errx(1, "strdup"); 206 } 207 break; 208 case F_RMD160: 209 ip->rmd160digest = strdup(val); 210 if(!ip->rmd160digest) { 211 errx(1, "strdup"); 212 } 213 break; |
|
202 case F_GID: 203 ip->st_gid = strtoul(val, &ep, 10); 204 if (*ep) 205 errx(1, "line %d: invalid gid %s", lineno, val); 206 break; 207 case F_GNAME: 208 if ((gr = getgrnam(val)) == NULL) 209 errx(1, "line %d: unknown group %s", lineno, val); --- 96 unchanged lines hidden --- | 214 case F_GID: 215 ip->st_gid = strtoul(val, &ep, 10); 216 if (*ep) 217 errx(1, "line %d: invalid gid %s", lineno, val); 218 break; 219 case F_GNAME: 220 if ((gr = getgrnam(val)) == NULL) 221 errx(1, "line %d: unknown group %s", lineno, val); --- 96 unchanged lines hidden --- |