Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-10]: src/usr.bin/resize Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/c201987959ce
branches: netbsd-10
changeset: 374472:c201987959ce
user: martin <martin%NetBSD.org@localhost>
date: Tue Apr 25 15:33:22 2023 +0000
description:
Pull up following revision(s) (requested by gutteridge in ticket #147):
usr.bin/resize/resize.h: revision 1.3
resize.c: use estrdup(3) with basename(3)
basename(3) is invoked more than once on different paths. Retain the
correct name for the utility itself on error. Addresses PR bin/57355
from RVP, who provided the patch.
diffstat:
usr.bin/resize/resize.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2a21df9f5892 -r c201987959ce usr.bin/resize/resize.h
--- a/usr.bin/resize/resize.h Tue Apr 25 15:30:09 2023 +0000
+++ b/usr.bin/resize/resize.h Tue Apr 25 15:33:22 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: resize.h,v 1.2 2021/02/28 00:44:58 christos Exp $ */
+/* $NetBSD: resize.h,v 1.2.6.1 2023/04/25 15:33:22 martin Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
#define TTYSIZE_COLS(ws) (ws).ws_col
#define SET_TTYSIZE(fd, ws) ioctl((fd), TIOCSWINSZ, &(ws))
-#define x_basename(a) basename(a)
+#define x_basename(a) estrdup(basename(a))
#define x_strdup(a) estrdup(a)
#define x_getenv(a) getenv(a)
#define x_getlogin(u, p) __nothing
Home |
Main Index |
Thread Index |
Old Index