summaryrefslogtreecommitdiff
path: root/usr.bin/split/split.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2005-08-21 06:35:02 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2005-08-21 06:35:02 +0000
commite93586df9d2139aa4082b26e077a5fd802b67a5a (patch)
tree2eea83d3742e741241c964b22dfe0381093d992d /usr.bin/split/split.c
parent8b78b3dc58ca6213aed4dbb134bc10d66f035467 (diff)
downloadsrc-test2-e93586df9d2139aa4082b26e077a5fd802b67a5a.tar.gz
src-test2-e93586df9d2139aa4082b26e077a5fd802b67a5a.zip
Notes
Diffstat (limited to 'usr.bin/split/split.c')
-rw-r--r--usr.bin/split/split.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c
index ca3847c5c965..e1978be03f1b 100644
--- a/usr.bin/split/split.c
+++ b/usr.bin/split/split.c
@@ -319,16 +319,8 @@ newfile(void)
if ((maxfiles *= 26) <= 0)
errx(EX_USAGE, "suffix is too long (max %ld)", i);
- /*
- * Hack to increase max files; original code wandered through
- * magic characters.
- */
- if (fnum == maxfiles) {
- if (!defname || fname[0] == 'z')
- errx(EX_DATAERR, "too many files");
- ++fname[0];
- fnum = 0;
- }
+ if (fnum == maxfiles)
+ errx(EX_DATAERR, "too many files");
/* Generate suffix of sufflen letters */
tfnum = fnum;