Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140156256
D38975.id118700.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
569 B
Referenced Files
None
Subscribers
None
D38975.id118700.diff
View Options
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c
--- a/usr.bin/calendar/io.c
+++ b/usr.bin/calendar/io.c
@@ -151,9 +151,12 @@
}
warnx("can't open calendar file \"%s\"", file);
- if (!warned && stat(_PATH_INCLUDE_LOCAL, &sb) != 0) {
- warnx("calendar data files now provided by calendar-data pkg.");
- warned = true;
+ if (!warned) {
+ snprintf(path, sizeof(path), _PATH_INCLUDE_LOCAL, getlocalbase());
+ if (stat(path, &sb) != 0) {
+ warnx("calendar data files now provided by calendar-data pkg.");
+ warned = true;
+ }
}
return (NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 11:10 PM (10 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27124121
Default Alt Text
D38975.id118700.diff (569 B)
Attached To
Mode
D38975: Look in getlocalbase() for the calendar-data package data
Attached
Detach File
Event Timeline
Log In to Comment