spec.c (122896) | spec.c (144295) |
---|---|
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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93"; 33#endif /* not lint */ 34#endif 35#include <sys/cdefs.h> | 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#if 0 31#ifndef lint 32static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93"; 33#endif /* not lint */ 34#endif 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/usr.sbin/mtree/spec.c 122896 2003-11-19 15:28:21Z phk $"); | 36__FBSDID("$FreeBSD: head/usr.sbin/mtree/spec.c 144295 2005-03-29 11:44:17Z tobez $"); |
37 38#include <sys/types.h> 39#include <sys/stat.h> 40#include <ctype.h> 41#include <err.h> 42#include <errno.h> 43#include <fts.h> 44#include <grp.h> --- 144 unchanged lines hidden (view full) --- 189 if(!ip->md5digest) 190 errx(1, "strdup"); 191 break; 192 case F_SHA1: 193 ip->sha1digest = strdup(val); 194 if(!ip->sha1digest) 195 errx(1, "strdup"); 196 break; | 37 38#include <sys/types.h> 39#include <sys/stat.h> 40#include <ctype.h> 41#include <err.h> 42#include <errno.h> 43#include <fts.h> 44#include <grp.h> --- 144 unchanged lines hidden (view full) --- 189 if(!ip->md5digest) 190 errx(1, "strdup"); 191 break; 192 case F_SHA1: 193 ip->sha1digest = strdup(val); 194 if(!ip->sha1digest) 195 errx(1, "strdup"); 196 break; |
197 case F_SHA256: 198 ip->sha256digest = strdup(val); 199 if(!ip->sha256digest) 200 errx(1, "strdup"); 201 break; |
|
197 case F_RMD160: 198 ip->rmd160digest = strdup(val); 199 if(!ip->rmd160digest) 200 errx(1, "strdup"); 201 break; 202 case F_FLAGS: 203 if (strcmp("none", val) == 0) 204 ip->st_flags = 0; --- 108 unchanged lines hidden --- | 202 case F_RMD160: 203 ip->rmd160digest = strdup(val); 204 if(!ip->rmd160digest) 205 errx(1, "strdup"); 206 break; 207 case F_FLAGS: 208 if (strcmp("none", val) == 0) 209 ip->st_flags = 0; --- 108 unchanged lines hidden --- |