commands.cc
/*
** chmod_current_file - attempt to chmod the current file
*/
attempt to chmod the current file
attempt to chmod the current file
static void chmod_current_file(DirList *dl)
{
    const char *file = get_file_name(dl);
    const char *mode = prompt("Change to mode: ");
    if (mode == 0)
    {
        move_cursor(dl->savedYPos(), dl->savedXPos());
        synch_display();
        return;
    }
    else if (*mode == 0)
    {
        message("not a valid file mode");
        move_cursor(dl->savedYPos(), dl->savedXPos());
        synch_display();
        return;
    }
    chmod_file(dl, file, mode);
    move_cursor(dl->savedYPos(), dl->savedXPos());
    synch_display();
}
static void chmod_current_file ( DirList * dl ) { const char * file = get_file_name ( dl ) ; const char * mode = prompt ( " " ) ; if ( mode == 0 ) { move_cursor ( dl -> savedYPos ( ) , dl -> savedXPos ( ) ) ; synch_display ( ) ; return ; } else if ( * mode == 0 ) { message ( " " ) ; move_cursor ( dl -> savedYPos ( ) , dl -> savedXPos ( ) ) ; synch_display ( ) ; return ; } chmod_file ( dl , file , mode ) ; move_cursor ( dl -> savedYPos ( ) , dl -> savedXPos ( ) ) ; synch_display ( ) ; }
chmod_current_file - attempt to chmod the current file
chmod_current_file - attempt to chmod the current file