mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
39 lines
936 B
C
39 lines
936 B
C
--- cramfsck.c.orig Wed Nov 29 12:49:40 2006
|
|
+++ cramfsck.c Wed Nov 29 12:51:12 2006
|
|
@@ -47,13 +47,14 @@
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
-#include <sys/sysmacros.h>
|
|
#include <utime.h>
|
|
#include <sys/ioctl.h>
|
|
#define _LINUX_STRING_H_
|
|
-#include <linux/fs.h>
|
|
#include <linux/cramfs_fs.h>
|
|
#include <zlib.h>
|
|
+
|
|
+#define BLKGETSIZE _IO(0x12,96)
|
|
+#define MAP_ANONYMOUS 0x20
|
|
|
|
/* Exit codes used by fsck-type programs */
|
|
#define FSCK_OK 0 /* No errors */
|
|
@@ -603,8 +603,17 @@
|
|
}
|
|
|
|
if (opt_extract) {
|
|
- if (mknod(path, i->mode, devtype) < 0) {
|
|
- die(FSCK_ERROR, 1, "mknod failed: %s", path);
|
|
+ switch(type) {
|
|
+ default:
|
|
+ if (mknod(path, i->mode, devtype) < 0) {
|
|
+ die(FSCK_ERROR, 1, "mknod failed: %s", path);
|
|
+ }
|
|
+ break;
|
|
+ case 'p':
|
|
+ if (mkfifo(path, i->mode) < 0) {
|
|
+ die(FSCK_ERROR, 1, "mkfifo failed: %s", path);
|
|
+ }
|
|
+ break;
|
|
}
|
|
change_file_status(path, i);
|
|
}
|