Commit Graph

9 Commits

Author SHA1 Message Date
John Eikenberry 6d8540e9cf improve previous commit's user/group lookups
Mostly fixing an inefficiency w/ calculating the gid string twice if
lookups fail (but also overall a bit cleaner).
2018-04-23 15:35:48 -07:00
John Eikenberry 5bf2a174b6 lookup username/group-name for longname
When returning file data, the longname field is assigned fileinfo
formatted as a long list entry (like `ls -l`). This adds username and
groupname lookup to that output instead of just using uid/gid values.
Falls back to uid/gid if there is an issue with the lookup.
2018-04-19 13:08:40 -07:00
andreas ec08c0d53b Moved permission detection for runLs to server.go
Make runLs return the recommended format in stubs, even if it does not contain all information
Removed unused parameter
2017-08-10 07:34:48 +02:00
Mark Sheahan d7309968cd add more tests; bug setting S_IFREG caused openssh sftp to refuse to get the file 2015-09-08 17:03:18 -07:00
Mark Sheahan bce43f23ac Address review comments; alter server test to allow the user / group words to be different 2015-09-07 22:50:46 -07:00
Mark Sheahan a94c674357 missed a file... 2015-09-07 22:10:18 -07:00
Mark Sheahan 7bb2083ca9 Address review comments; about to change decodePacket() 2015-09-06 23:55:15 -07:00
Mark Sheahan 0aec5ce5ec use merge-to target branches, not ScriptRock ones 2015-09-06 21:54:42 -07:00
Mark Sheahan c36e806e57 runLs output matching openssh for some stuff 2015-09-06 21:37:33 -07:00