Эх сурвалжийг харах

[Feat] [1.0.0] Add vmnetproxy to getty

xcbosa mbp16 2 сар өмнө
parent
commit
a797edda0b

+ 1 - 4
post_sbin/getty.c

@@ -648,10 +648,7 @@ void log_message(const char *format, ...);
  * @return 文件描述符
  * @return 文件描述符
  */
  */
 int open_proxy_file(int flags) {
 int open_proxy_file(int flags) {
-    int fd = open(PROXY_FILE, flags, 1101824);
-    if (fd < 0) {
-        fd = creat(PROXY_FILE, 0333);
-    }
+    int fd = open(PROXY_FILE, flags);
     if (fd < 0) {
     if (fd < 0) {
         log_message("无法打开代理文件: %s", strerror(errno));
         log_message("无法打开代理文件: %s", strerror(errno));
         return -1;
         return -1;