Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Dec 2015 18:21:17 -0500
From:      Robert Ames <robertames@hotmail.com>
To:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   calendar -a failing in 10.2-RELEASE
Message-ID:  <BLU177-W455E31BC480246A502EDE1C9E30@phx.gbl>

index | next in thread | raw e-mail

In 10.2-RELEASE running "calendar -a" as root fails when user calendar files have a #include line.  This worked in 10.0-RELEASE (and before).  From my limited testing I think it's looking for the included files relative to root's home directory and not the user's home directory.  The svn repository shows some changes in this area in recent releases.  Not sure if this new behavior is intentional.

$ uname -a
FreeBSD freebsd.example.com 10.2-RELEASE FreeBSD 10.2-RELEASE #0: Sun Dec 20 10:00:14 CST 2015     root@freebsd.example.com:/usr/obj/usr/src/sys/GENERIC  i386
$ id
uid=1000(robert) gid=20(staff) groups=20(staff),0(wheel),5(operator)
$ date
Sun Dec 20 16:47:44 CST 2015
$ cat ~/.calendar/calendar 
#include <moredates>
$ cat ~/.calendar/moredates 
12/20   Today is December 20
$ calendar
Dec 20  Today is December 20

root@freebsd# id
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
root@freebsd# calendar -a
calendar: can't open calendar file "moredates"

 		 	   		  

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU177-W455E31BC480246A502EDE1C9E30>