Show More
@@ -23,10 +23,20 b' def has_executablebit():' | |||
|
23 | 23 | finally: |
|
24 | 24 | os.remove(path) |
|
25 | 25 | |
|
26 | def has_eol_in_paths(): | |
|
27 | try: | |
|
28 | fd, path = tempfile.mkstemp(suffix='\n\r') | |
|
29 | os.close(fd) | |
|
30 | os.remove(path) | |
|
31 | return True | |
|
32 | except: | |
|
33 | return False | |
|
34 | ||
|
26 | 35 | checks = { |
|
27 | 36 | "symlink": (has_symlink, "symbolic links"), |
|
28 | 37 | "fifo": (has_fifo, "named pipes"), |
|
29 | 38 | "execbit": (has_executablebit, "executable bit"), |
|
39 | "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), | |
|
30 | 40 | } |
|
31 | 41 | |
|
32 | 42 | def list_features(): |
General Comments 0
You need to be logged in to leave comments.
Login now