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 "$FreeBSD: head/usr.sbin/mtree/spec.c 61749 2000-06-17 14:19:33Z joe $"; |
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> --- 161 unchanged lines hidden (view full) --- 209 ip->rmd160digest = strdup(val); 210 if(!ip->rmd160digest) { 211 errx(1, "strdup"); 212 } 213 break; 214 case F_FLAGS: 215 if (strcmp("none", val) == 0) 216 ip->st_flags = 0; |
217 else if (strtofflags(&val, &ip->st_flags, NULL) != 0) |
218 errx(1, "line %d: invalid flag %s",lineno, val); 219 break; 220 case F_GID: 221 ip->st_gid = strtoul(val, &ep, 10); 222 if (*ep) 223 errx(1, "line %d: invalid gid %s", lineno, val); 224 break; 225 case F_GNAME: --- 98 unchanged lines hidden --- |