committed by
Julien Laffaye
parent
8f5b34ce00
commit
9284a88df5
6
parse.go
6
parse.go
@@ -73,8 +73,10 @@ func parseRFC3659ListLine(line string, now time.Time, loc *time.Location) (*Entr
|
||||
// the UNIX ls command.
|
||||
func parseLsListLine(line string, now time.Time, loc *time.Location) (*Entry, error) {
|
||||
|
||||
// Has the first field a length of 10 bytes?
|
||||
if strings.IndexByte(line, ' ') != 10 {
|
||||
// Has the first field a length of exactly 10 bytes
|
||||
// - or 10 bytes with an additional '+' character for indicating ACLs?
|
||||
// If not, return.
|
||||
if i := strings.IndexByte(line, ' '); !(i == 10 || (i == 11 && line[10] == '+')) {
|
||||
return nil, errUnsupportedListLine
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user