Date: Thu, 5 Oct 1995 10:02:47 +0100 From: Chris Stenton <jacs@gnome.co.uk> To: stable@freebsd.org Subject: lpr bug still not fixed Message-ID: <jacs-9509050902.AA00021529@hawk.gnome.co.uk>
next in thread | raw e-mail | index | archive | help
Hi, I sent this bug fix a number of weeks ago to bugs@freebsd.org but still not seen it in the release code. Currently lpr -r does not work. The following is a diff fix. *** lpr.c.old Sat Aug 26 14:48:00 1995 --- lpr.c Wed Oct 4 11:13:41 1995 *************** *** 600,609 **** if (cp == file) { fd = checkwriteperm(file,"/"); } else { ! strcpy(path,file); *cp = '\0'; fd = checkwriteperm(path,file); *cp = '/'; } if (fd == 0) return(1); --- 600,611 ---- if (cp == file) { fd = checkwriteperm(file,"/"); } else { ! path = malloc(strlen(file)+1 ); ! strcpy (path, file); *cp = '\0'; fd = checkwriteperm(path,file); *cp = '/'; + free(path); } if (fd == 0) return(1); ------------------------------------------------------------------------------- Dr Chris Stenton chris@gnome.co.uk Gnome Computers Ltd Tel/Fax: 44 (0)1480 406164 25A Huntingdon St, St Neots, Cambridgeshire, PE19 1BG ------------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?jacs-9509050902.AA00021529>