Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Constantin Stefanov                  2:5020/400     29 Sep 2005  11:09:50
 To : Andrey Ostanovsky
 Subject : Re: FreeBSD 6.0-BETA5
 -------------------------------------------------------------------------------- 
 
 Andrey Ostanovsky wrote:
 
 > # ipfw sh
 > ipfw: DEPRECATED: 'sh' matched 'show' as a sub-string
 
 /*
   * _substrcmp takes two strings and returns 1 if they do not match,
   * and 0 if they match exactly or the first string is a sub-string
   * of the second.  A warning is printed to stderr in the case that the
   * first string is a sub-string of the second.
   *
   * This function will be removed in the future through the usual
   * deprecation process.
   */
 static int
 _substrcmp(const char *str1, const char* str2)
 {
   
   if (strncmp(str1, str2, strlen(str1)) != 0)
    return 1;
 
   if (strlen(str1) != strlen(str2))
    warnx("DEPRECATED: '%s' matched '%s' as a sub-string",
        str1, str2);
   return 0;
 }
 
 > Мля, ну просто нет других слов! Кому помешала укороченная команда "sh" так,
 > что теперь специальное правило с выводом предупреждения на нее написали? Им
 > там что, больше нечем заняться? И после этого тут кое-кто плачется, что
 > разработчики FreeBSD очень загружены? Hе верю!(с)
 
 Hикому ничего не помешало. Просто взялись за нормальную проверку 
 входного синтаксиса, и это, по-моему, правильно.
 
 -- 
 Константин Стефанов
 
 ... Она воздушна, типа, как поцелуй, а я воздушен, как десант
 --- ifmail v.2.15dev5.3
  * Origin: Demos online service (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 FreeBSD 6.0-BETA5   Andrey Ostanovsky   29 Sep 2005 10:26:18 
 Re: FreeBSD 6.0-BETA5   Constantin Stefanov   29 Sep 2005 11:09:50 
 Re: FreeBSD 6.0-BETA5   Gleb Smirnoff   29 Sep 2005 12:45:13 
 Re: FreeBSD 6.0-BETA5   Alexander Belkin   29 Sep 2005 13:00:19 
 Re: FreeBSD 6.0-BETA5   Moderator of RU.UNIX.BSD   29 Sep 2005 13:24:03 
 FreeBSD 6.0-BETA5   Andrey Ostanovsky   29 Sep 2005 13:23:08 
 Re: FreeBSD 6.0-BETA5   Kirill Ponomarew   29 Sep 2005 16:33:44 
 Re: FreeBSD 6.0-BETA5   Moderator of RU.UNIX.BSD   29 Sep 2005 13:25:59 
Архивное /ru.unix.bsd/65777ab723da.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional