how-lix-os-pkgs/ubase/default/patch

100 lines
2.2 KiB
Plaintext

diff --git a/config.mk b/config.mk
index 245a590..67b0334 100644
--- a/config.mk
+++ b/config.mk
@@ -2,7 +2,7 @@
VERSION = 0.1
# paths
-PREFIX = /usr/local
+PREFIX = /
MANPREFIX = $(PREFIX)/share/man
CC = cc
@@ -12,4 +12,4 @@ RANLIB = ranlib
CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
CFLAGS = -std=c99 -Wall -Wextra
LDLIBS = -lcrypt
-LDFLAGS = -s
+LDFLAGS = -s -static
diff --git a/libutil/tty.c b/libutil/tty.c
index bceb01e..8a2cd73 100644
--- a/libutil/tty.c
+++ b/libutil/tty.c
@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <fcntl.h>
#include <dirent.h>
diff --git a/login.c b/login.c
index 25a59e4..3ee5a06 100644
--- a/login.c
+++ b/login.c
@@ -107,7 +107,7 @@ main(int argc, char *argv[])
/* Flush pending input */
ioctl(0, TCFLSH, (void *)0);
- pass = getpass("Password: ");
+ pass = getpass("password: ");
if (!pass)
eprintf("getpass:");
if (pw_check(pw, pass) <= 0)
diff --git a/mknod.c b/mknod.c
index 8de35c7..27f91e0 100644
--- a/mknod.c
+++ b/mknod.c
@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <fcntl.h>
#include <stdio.h>
diff --git a/mountpoint.c b/mountpoint.c
index 8f205a2..fd3a133 100644
--- a/mountpoint.c
+++ b/mountpoint.c
@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <mntent.h>
#include <stdio.h>
diff --git a/stat.c b/stat.c
index 220a659..3f91566 100644
--- a/stat.c
+++ b/stat.c
@@ -1,6 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <inttypes.h>
#include <stdio.h>
@@ -86,4 +87,4 @@ main(int argc, char *argv[])
}
return ret;
-}
\ No newline at end of file
+}
diff -ru a/mount.c b/mount.c
--- a/mount.c 2020-07-06 04:33:28.700000000 +0000
+++ b/mount.c 2020-07-06 04:34:25.210000000 +0000
@@ -15,7 +15,7 @@
#include "text.h"
#include "util.h"
-#define FSOPTS_MAXLEN 512
+#define FSOPTS_MAXLEN 8192
struct {
const char *opt;