소스 검색

Correct name checking for NEW and RENAME (#53)

master
Vlad Glagolev Arun Prakash Jana 7 년 전
부모
커밋
8959a5b57d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      nnn.c

+ 2
- 2
nnn.c 파일 보기

@@ -2677,7 +2677,7 @@ nochange:
break;

/* Allow only relative, same dir paths */
if (tmp[0] == '/' || basename(tmp) != tmp) {
if (tmp[0] == '/' || xstrcmp(basename(tmp), tmp) != 0) {
printmsg(STR_INPUT);
goto nochange;
}
@@ -2730,7 +2730,7 @@ nochange:
break;

/* Allow only relative, same dir paths */
if (tmp[0] == '/' || basename(tmp) != tmp) {
if (tmp[0] == '/' || xstrcmp(basename(tmp), tmp) != 0) {
printmsg(STR_INPUT);
goto nochange;
}


불러오는 중...
취소
저장