Kaynağa Gözat

Don't attempt to go back if on the relative root

master
lostd 11 yıl önce
ebeveyn
işleme
9407399230
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. +3
    -1
      noice.c

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

@@ -658,7 +658,9 @@ nochange:
return;
case SEL_BACK:
/* There is no going back */
if (strcmp(path, "/") == 0)
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
goto nochange;
if (canopendir(path) == 0) {
printwarn();


Yükleniyor…
İptal
Kaydet