diff options
Diffstat (limited to 'do-not-replace-dots.patch')
-rw-r--r-- | do-not-replace-dots.patch | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/do-not-replace-dots.patch b/do-not-replace-dots.patch deleted file mode 100644 index 0339f76933db..000000000000 --- a/do-not-replace-dots.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/setfname.cpp b/setfname.cpp -index 6eac756..5ae89e1 100644 ---- a/setfname.cpp -+++ b/setfname.cpp -@@ -65,14 +65,8 @@ bool file::vmodify(const char* fname, const function& edit) const - } - - string name = edited; -- int dot = 1; - for(string::iterator p = name.end()-1; p != name.begin()-1; --p) { - if(!portable_fn(*p)) *p = '_'; // replace ill. chars -- if(*p == '.') { -- if(dot-- <= 0) { -- *p = '_'; -- } -- } - } - if(const char* psep = strrchr(fname, '/')) { - name.insert(0, fname, psep-fname+1); // copy path prefix |