å æ¥ã¯å¾³ä¸¸æµ©ããã«ãã PHP5.3.7 ã® crypt é¢æ°ã«ããããã°ã®è§£èª¬ãèªã¿ãä¸ççã«æåãªãªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ã§ããããªåæ©çãªãã¹ãããããã®ãã¨ããã親è¿æã湧ãã¦ãã¾ã£ãããPau Garcia Quiles ãèªãããã¾ã§ã§æãæããã C ã®ãã°ã¨ã¯ä½ãï¼
å½¼ã¯ãã³ãã©ãªãã¡ã¤ã«ã tmpfile() ã§ä½ã Unix ã¢ããªã±ã¼ã·ã§ã³ã®ç§»æ¤ããã£ã¦ããã
else if (code == 200) { // Downloading whole file /* Write new file (plus allow reading once we finish) */ g = fname ? fopen(fname, "w+") : tmpfile(); }
ãã¤ã¯ãã½ããã® tmpfile() ã®å®è£ ã§ã¯ãã³ãã©ãªãã¡ã¤ã«ã¯ C ãã©ã¤ãç´ä¸ã«ä½æãããããã®æã®ååã¯åãã ã Unix 㨠Windows ã§æµåãéãé¢æ°ã®æåã«è¦ãããã¨ãå¤ãã£ãã®ã§ããããå¿ããªãããã³ã¡ã³ããå ¥ããã
else if (code == 200) { // Downloading whole file /* Write new file (plus allow reading once we finish) */ // FIXME Win32 native version fails here because Microsoft's version of tmpfile() creates the file in C:\ g = fname ? fopen(fname, "w+") : tmpfile(); }
ãã®å¾ã話ã¯ç¶ãã®ã ããå®ã¯ãã®æç¹ã§å½¼ã¯ã¨ãã§ããªããã°ãä»è¾¼ãã§ãã¾ã£ã¦ããããã°ã¨ãã£ã¦ãã³ã¡ã³ããå ¥ããã ããªã®ã«ï¼ ä½ããã°ããåããã ãããï¼
ãããC ãã©ã¤ãç´ä¸ã示ãã³ã¡ã³ãã®æå¾ã«ããã¯ã¹ã©ãã·ã¥ããããããæ¹è¡ãç¡è¦ããã次ã®è¡ã®å¦çèªä½ã³ã¡ã³ãã®ä¸é¨ã¨è¦ãªããã¦ãã¾ãã®ã ï¼
確ãã«ãã¯ããå®ç¾©ããã¨ãã«ãã®æ¹è¡ãç¡è¦ãããããã¯ã¹ã©ãã·ã¥ã使ã£ã¦è¤æ°è¡ã«ã³ã¼ããå±éãè¦ãããããææ³ããã使ããããããªã¨ããã§ãããã³ã¡ã³ãã®ä¸ã§ãããçºåãã¦ãã¾ãã¨ã¯æããªãããªã
ãã¿å 㯠Hacker Newsã