[syslinux:master] hdt: Removing commas and plus signs from filename
syslinux-bot for Erwan Velu
erwanaliasr1 at gmail.com
Fri Sep 4 09:15:06 PDT 2015
Commit-ID: ac87e802d87134170faa323085b2165599cdad01
Gitweb: http://www.syslinux.org/commit/ac87e802d87134170faa323085b2165599cdad01
Author: Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Wed, 19 Aug 2015 07:12:10 +0200
Committer: Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Fri, 4 Sep 2015 17:57:52 +0200
hdt: Removing commas and plus signs from filename
When uploading the dump file to a tftp server, removing the plus & comma
sign from the filename could make the file easier to manipulate later.
---
com32/hdt/hdt-dump.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/com32/hdt/hdt-dump.c b/com32/hdt/hdt-dump.c
index b1748c8..7d608a0 100644
--- a/com32/hdt/hdt-dump.c
+++ b/com32/hdt/hdt-dump.c
@@ -116,6 +116,12 @@ char *compute_filename(struct s_hardware *hardware)
/* Avoid space to make filename easier to manipulate */
chrreplace(filename, ' ', '_');
+ /* Avoid commas to make filename easier to manipulate */
+ chrreplace(filename, ',', '_');
+
+ /* Avoid pluses to make filename easier to manipulate */
+ chrreplace(filename, '+', '_');
+
return filename;
}
More information about the Syslinux-commits
mailing list