phunix/commands
Thomas Cort 940bbe18b6 mkdir: allow 'mkdir -p' with trailing '/'
Let's suppose that /usr/tmp exists and one wants /usr/tmp/a/b
If one runs "mkdir -p /usr/tmp/a/b/" (the '/' at the end is
important), then a "File exists" error comes up. Example:

$ rm -rf /usr/tmp/a
$ mkdir -p /usr/tmp/a/b/
/usr/tmp/a/b/: File exists

This breaks gcc47 installation when C++ is enabled, and this
isn't the behaviour of mkdir on NetBSD nor Linix.

This patch fixes the above issue by dropping the trailing '/'.
2011-08-15 09:14:36 +00:00
..
2011-07-22 17:28:27 +02:00
2011-07-21 14:31:17 +02:00
2011-07-26 18:59:52 +02:00
2011-06-09 08:27:49 +02:00
2011-01-28 11:35:02 +00:00
2010-07-06 12:10:23 +00:00
2011-08-01 14:32:14 +02:00
2010-07-06 12:10:23 +00:00
2010-08-12 14:11:28 +00:00
2010-07-06 12:10:23 +00:00
2011-02-23 14:24:17 +00:00
2011-06-09 08:27:49 +02:00
2010-07-01 00:06:41 +00:00
2010-12-10 15:18:28 +00:00
2011-08-01 14:32:14 +02:00
2011-06-09 08:27:49 +02:00
2011-07-13 18:19:27 +02:00
2010-08-06 12:46:01 +00:00
2011-08-01 14:32:14 +02:00
2011-06-07 15:23:23 +00:00
2010-07-06 12:10:23 +00:00
2010-11-06 20:40:15 +00:00
2011-07-13 18:19:27 +02:00
2010-09-14 21:31:56 +00:00
2010-06-25 23:25:48 +00:00
2010-07-18 19:20:36 +00:00
2011-08-01 14:32:14 +02:00
2011-07-16 13:01:19 +02:00
2010-07-06 12:10:23 +00:00
2010-12-10 15:21:59 +00:00
2010-11-06 20:41:51 +00:00
2010-11-06 20:40:15 +00:00
2011-07-11 21:10:28 +02:00
2010-08-03 13:58:36 +00:00
2011-07-13 18:19:27 +02:00
2011-07-16 13:01:19 +02:00
2010-09-10 17:00:30 +00:00
2010-11-06 20:40:15 +00:00
2010-11-06 20:40:15 +00:00
2010-07-06 12:10:23 +00:00
2011-05-26 08:22:57 +02:00
2011-07-13 18:19:27 +02:00
2011-08-04 16:50:57 +00:00
2010-07-06 12:10:23 +00:00
2010-09-14 21:31:56 +00:00
2010-07-05 21:04:31 +00:00
2010-11-06 20:40:15 +00:00
2010-11-06 20:40:15 +00:00
2011-07-27 17:16:17 +02:00