[BACK]Return to audioctl.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / audioctl

Diff for /src/usr.bin/audioctl/audioctl.c between version 1.37 and 1.38

version 1.37, 2019/06/28 13:35:00 version 1.38, 2020/01/30 05:17:07
Line 217 
Line 217 
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
   
         if (unveil(path, "rw") == -1)          if (unveil(path, "w") == -1)
                 err(1, "unveil");                  err(1, "unveil");
         if (unveil(NULL, NULL) == -1)          if (unveil(NULL, NULL) == -1)
                 err(1, "unveil");                  err(1, "unveil");
   
         fd = open(path, O_RDWR);          fd = open(path, O_WRONLY);
         if (fd == -1)          if (fd == -1)
                 err(1, "%s", path);                  err(1, "%s", path);
         if (ioctl(fd, AUDIO_GETSTATUS, &rstatus) == -1)          if (ioctl(fd, AUDIO_GETSTATUS, &rstatus) == -1)

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38