Closed RealHurrison closed 7 months ago
find will return -1 on failure not 0 or bool
-1
0
if -1: print("passwd")
This code snippet will print 1, so the if check to find header is incorrect.
if
find will return
-1
on failure not0
or boolThis code snippet will print 1, so the
if
check to find header is incorrect.