fix off-by-one error in set_perm()
We were inadvertently skipping over the first filename in the list of arguments.
This commit is contained in:
		@@ -422,7 +422,7 @@ char* SetPermFn(const char* name, State* state, int argc, Expr* argv[]) {
 | 
			
		||||
            goto done;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        for (i = 4; i < argc; ++i) {
 | 
			
		||||
        for (i = 3; i < argc; ++i) {
 | 
			
		||||
            chown(args[i], uid, gid);
 | 
			
		||||
            chmod(args[i], mode);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user