compress.c (fa146c53357ea20afd3661d8093ea1db44198d5f) | compress.c (fae643c5795db2d9bf031c6db8a70ba8d6978c62) |
---|---|
1/*- 2 * Copyright (c) 1992, 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 --- 24 unchanged lines hidden (view full) --- 33 34#ifndef lint 35static const char copyright[] = 36"@(#) Copyright (c) 1992, 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint | 1/*- 2 * Copyright (c) 1992, 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 --- 24 unchanged lines hidden (view full) --- 33 34#ifndef lint 35static const char copyright[] = 36"@(#) Copyright (c) 1992, 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint |
41static const char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; | 41#if 0 42static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; 43#endif 44static const char rcsid[] = 45 "$FreeBSD$"; |
42#endif /* not lint */ 43 44#include <sys/param.h> | 46#endif /* not lint */ 47 48#include <sys/param.h> |
45#include <sys/time.h> | |
46#include <sys/stat.h> 47 48#include <err.h> 49#include <errno.h> 50#include <stdio.h> 51#include <stdlib.h> 52#include <string.h> 53#include <unistd.h> --- 314 unchanged lines hidden (view full) --- 368 * chown. If chown fails, lose setuid/setgid bits. 369 */ 370 if (chown(name, fs->st_uid, fs->st_gid)) { 371 if (errno != EPERM) 372 cwarn("chown: %s", name); 373 fs->st_mode &= ~(S_ISUID|S_ISGID); 374 } 375 if (chmod(name, fs->st_mode)) | 49#include <sys/stat.h> 50 51#include <err.h> 52#include <errno.h> 53#include <stdio.h> 54#include <stdlib.h> 55#include <string.h> 56#include <unistd.h> --- 314 unchanged lines hidden (view full) --- 371 * chown. If chown fails, lose setuid/setgid bits. 372 */ 373 if (chown(name, fs->st_uid, fs->st_gid)) { 374 if (errno != EPERM) 375 cwarn("chown: %s", name); 376 fs->st_mode &= ~(S_ISUID|S_ISGID); 377 } 378 if (chmod(name, fs->st_mode)) |
376 cwarn("chown: %s", name); | 379 cwarn("chmod: %s", name); |
377 378 if (chflags(name, fs->st_flags)) 379 cwarn("chflags: %s", name); 380} 381 382int 383permission(fname) 384 char *fname; --- 66 unchanged lines hidden --- | 380 381 if (chflags(name, fs->st_flags)) 382 cwarn("chflags: %s", name); 383} 384 385int 386permission(fname) 387 char *fname; --- 66 unchanged lines hidden --- |