Kaynağa Gözat

Show message when trying to go above /

master
Arun Prakash Jana 8 yıl önce
ebeveyn
işleme
0aa1d43428
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: A75979F35C080412
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c Dosyayı Görüntüle

@@ -828,8 +828,10 @@ nochange:
/* There is no going back */
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
strchr(path, '/') == NULL) {
printmsg("You are at /");
goto nochange;
}
dir = xdirname(path);
if (canopendir(dir) == 0) {
printwarn();


Yükleniyor…
İptal
Kaydet