Revision: 77477
http://sourceforge.net/p/brlcad/code/77477
Author: brlcad
Date: 2020-10-18 05:54:51 +0000 (Sun, 18 Oct 2020)
Log Message:
-----------
stdin is a special case for bu_file_same()
Modified Paths:
--------------
brlcad/trunk/src/libbu/file.c
Modified: brlcad/trunk/src/libbu/file.c
===================================================================
--- brlcad/trunk/src/libbu/file.c 2020-10-18 03:05:56 UTC (rev 77476)
+++ brlcad/trunk/src/libbu/file.c 2020-10-18 05:54:51 UTC (rev 77477)
@@ -190,6 +190,11 @@
return 0;
}
+ /* stdin is a special case */
+ if (BU_STR_EQUAL(rp1, rp2) && BU_STR_EQUAL(rp1, "-"))
+ return 1;
+ }
+
if (!bu_file_exists(fn1, NULL) || !bu_file_exists(fn2, NULL)) {
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits