ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] [JT] Privoxy guard
@ 2006-06-07  9:41 Epiphanov Sergei
  0 siblings, 0 replies; only message in thread
From: Epiphanov Sergei @ 2006-06-07  9:41 UTC (permalink / raw)
  To: Рассылка Sisyphus

Читаю страницу (http://kerneltrap.org/node/5619) и вижу, что в качестве 
пример приводится тестовая программа. Но одна строка странная:

$ cat test.c
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
int main()
{
        int fd;
        int i;
        fd = PrivoxyWindowOpen("a.out", O_RDWR);
        if(fd < 0) {
                printf("error opening file:%s\n", strerror(errno));
        }
        return 0;
}
$ gcc test.c
$ ./a.out
error opening file:Text file busy

Потом дошло, что privoxy, который отсеивает всю ненужную требуху, превратил 
команду open() в команду PrivoxyWindowOpen(), не сообразив, что это не 
Javascript, а обычный текст. Интересно, есть ли подобные privoxy программы в 
Сизифе, но более сообразительные?

-- 
С уважением, Епифанов Сергей

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-07  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07  9:41 [sisyphus] [JT] Privoxy guard Epiphanov Sergei

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git