useless call to endgrent()/endpwent()
Closed / Fixed1942222fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 17 years ago
Descriptionplain2008-04-14 16:22:30
in unix/tclUnixFCmd.c, GetGroupAttribute() and GetOwnerAttribute() make calls to non-wrapped POSIX calls endpwent() and endgrent(). These two calls are marked to be avoided by the Open Group http://www.opengroup.org/onlinepubs/009695399/functions/getgrent.html Moreover, the actual calls are useless since TclpGetPwUid() and TclpGetGrUid() do use the newer grgetpw() and grgetgid(). Solution : remove the calls.
karllimplain2008-04-14 23:22:31
File Added - 274488: tcl_endgrpwent_20080414.diff
karllimplain2008-04-14 23:28:29
File Deleted - 274488:
karllimplain2008-04-14 23:28:49
File Added - 274491: tcl_endgrpwent_20080414.diff Logged In: YES user_id=143750 Originator: YES File Added: tcl_endgrpwent_20080414.diff
dkf Ticket [1942222fff]: 3 changes
[History diff]2008-04-15 15:03:40
dkfplain2009-08-02 18:44:14
IP - Comment Removed: 77.97.136.76
dkfplain2009-08-02 19:08:29
Looks like those are hangovers from when we did use getpwent() and getgrent(), and serve no purpose now. Fixed on HEAD.
dkfplain2009-08-02 19:15:24
Backported to 8.5 branch
dkfplain2009-08-02 19:16:19
allow_comments - 1
Log in (anonymous is fine) to add a comment.
Attachments:
- tcl_endgrpwent_20080414.diff [download] added by karllim on 2008-04-14 23:28:49. [details]