diff options
| author | Will Andrews <will@FreeBSD.org> | 2000-12-31 06:02:40 +0000 |
|---|---|---|
| committer | Will Andrews <will@FreeBSD.org> | 2000-12-31 06:02:40 +0000 |
| commit | 58e54dfd2300055f4b5285d83ee10d7c37f91b71 (patch) | |
| tree | d2fc2d23bfd7c870e396a8d68ac2fee1d3e06bca /shells/pash/files/patch-aa | |
| parent | 641bd655c323339a63706419249effce58575383 (diff) | |
Add pash 2.2, a full-screen shell, similar to Midnight Commander. Some
patches were included to fix various bugs (including what I believe are
potential overflow bugs involving gets()).
PR: 23949
Submitted by: George Reid <greid@ukug.uk.freebsd.org>
Diffstat (limited to 'shells/pash/files/patch-aa')
| -rw-r--r-- | shells/pash/files/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/shells/pash/files/patch-aa b/shells/pash/files/patch-aa new file mode 100644 index 000000000000..3b2bc71311d4 --- /dev/null +++ b/shells/pash/files/patch-aa @@ -0,0 +1,20 @@ +--- ash.c.orig Sun Jan 12 17:39:42 1997 ++++ ash.c Sat Dec 30 03:05:28 2000 +@@ -1850,7 +1850,7 @@ + printf("Display=Color|B/W\n"); + printf("\n[Press Enter for more...]"); + fflush(stdout); +- gets(DummyStr); ++ fgets(DummyStr, DUMMYSTR_SIZE, stdin); + printf("\nOverriding configuration file on the command line:\n\n"); + printf("-s pc|vt|text for screen configuration\n"); + printf("-k posix|system_v|bsd|/usr/group for keyboard configuration\n"); +@@ -2012,7 +2012,7 @@ + printf("Type pash -h or see pash.txt for informations about this file.\n\n"); + printf("[Press Enter to go on...]"); + fflush(stdout); +- gets(Buffer); ++ fgets(Buffer, sizeof(Buffer), stdin); + } + + for(i=1;i<argc;i++) |
