[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tmpdir.c:path_search() v. VMS
From: |
Steven M. Schweda |
Subject: |
tmpdir.c:path_search() v. VMS |
Date: |
Sun, 14 Jul 2013 13:30:39 -0500 (CDT) |
While trying to get Wget to work on VMS (again), I ran into a problem
with tmpdir.c:path_search(). The Wget maintainer denied responsibility,
and suggested that I direct my complaint here.
--- lib/tmpdir.c_orig 2013-07-11 15:23:39 -0500
+++ lib/tmpdir.c 2013-07-11 22:01:46 -0500
@@ -149,6 +149,15 @@
return -1;
}
+/* 2012-08-18 SMS.
+ * Sadly, on VMS, P_tmpdir is defined as "SYS$SCRATCH:", not a
+ * Posix-compatible name, so a VMS-specific scheme (no "/") must be used
+ * to concatenate the directory name and the file name.
+ */
+#ifdef __VMS
+ sprintf (tmpl, "%.*s%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx);
+#else
sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx);
+#endif
return 0;
}
I assume that nothing's formatted correctly there, but if this (or
some comparably helpful change) could be slipped in, I'd be grateful.
I may check the archive from time to time, but I'm not a list
subscriber, so e-mail would be good if anyone has a question.
------------------------------------------------------------------------
Steven M. Schweda address@hidden
382 South Warwick Street (+1) 651-699-9818
Saint Paul MN 55105-2547
- tmpdir.c:path_search() v. VMS,
Steven M. Schweda <=