1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mac-fdisk/hotfix-no-sys_errlist.patch
3 # Copyright (C) 2020 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- mac-fdisk-0.1.orig/errors.c.vanilla 2020-10-28 16:14:27.886528904 +0100
15 +++ mac-fdisk-0.1.orig/errors.c 2020-10-28 16:15:59.270527821 +0100
20 - if (value > 0 && value < sys_nerr) {
21 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
23 - fprintf(stderr, "\n");
25 + fprintf(stderr, " (%s)\n", strerror(value));
27 fprintf(stderr, "\n");
33 - if (value > 0 && value < sys_nerr) {
34 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
36 - fprintf(stderr, "\n");
38 + fprintf(stderr, " (%s)\n", strerror(value));
40 fprintf(stderr, "\n");