|
| From: | Marcin Cieślak |
| Subject: | [screen-devel] [bug #45751] sparc-sun-solaris2.9: Fix "Bad tty": Use older POSIX realpath(name, buf) instead of NULL, accept /devices |
| Date: | Thu, 13 Aug 2015 22:42:03 +0000 |
| User-agent: | Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Firefox/38.0 |
URL:
<http://savannah.gnu.org/bugs/?45751>
Summary: sparc-sun-solaris2.9: Fix "Bad tty": Use older POSIX
realpath(name, buf) instead of NULL, accept /devices
Project: GNU Screen
Submitted by: saper
Submitted on: Fri 14 Aug 2015 12:42:02 AM CEST
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Fixed Release: None
Planned Release: 4.3.1
Work Required: None
_______________________________________________________
Details:
Solaris 2.9 does not a second NULL argument:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html
Attached patch fixes it by allocating a local buffer.
Also account for the possibility that /dev entries
are symlinked into /devices on Solaris:
ls -lF `tty`
lrwxrwxrwx 1 root root 28 gru 19 2011 /dev/pts/8 ->
../../devices/pseudo/address@hidden:8
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 14 Aug 2015 12:42:02 AM CEST Name:
0001-Use-realpath-name-buf-for-Solaris.patch Size: 1kB By: saper
Simplistic patch to use older realpath()
<http://savannah.gnu.org/bugs/download.php?file_id=34640>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45751>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |