Displaying 3 results from an estimated 3 matches for "ffb0b1f".
2016 Jan 06
0
[klibc:master] readlink: Add -f option
...-off-by: Ben Hutchings <ben at decadent.org.uk>
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
usr/utils/readlink.c | 29 +++++++++++++++++++++++++----
1 file changed, 25 insertions(+), 4 deletions(-)
diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c
index 4e3cfcb..ffb0b1f 100644
--- a/usr/utils/readlink.c
+++ b/usr/utils/readlink.c
@@ -7,24 +7,45 @@ const char *progname;
static __noreturn usage(void)
{
- fprintf(stderr, "Usage: %s link...\n", progname);
+ fprintf(stderr, "Usage: %s [-f] link...\n", progname);
exit(1);
}
int main(int arg...
2019 Jan 18
0
[klibc:master] remove unused variables
...--- a/usr/klibc/asprintf.c
+++ b/usr/klibc/asprintf.c
@@ -10,8 +10,6 @@ int asprintf(char **bufp, const char *format, ...)
{
va_list ap;
int rv;
- int bytes;
- char *p;
va_start(ap, format);
rv = vasprintf(bufp, format, ap);
diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c
index ffb0b1f..1f16c02 100644
--- a/usr/utils/readlink.c
+++ b/usr/utils/readlink.c
@@ -17,7 +17,6 @@ int main(int argc, char *argv[])
const char *name;
char link_name[PATH_MAX];
int rv;
- int i;
progname = argv[0];
2016 Jan 06
3
[PATCH klibc 0/3] Changes to support initramfs-tools 0.117
initramfs-tools version 0.117 requires 'readlink -f' and
'mount -o defaults' to work.
The first two patches were previously submitted but not applied.
Ben.
Ben Hutchings (3):
Implement realpath()
readlink: Add -f option
mount: Implement -o defaults
usr/include/stdlib.h | 2 ++
usr/klibc/Kbuild | 2 +-
usr/klibc/realpath.c | 49